package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class MxBlogBeJavaApplication extends SpringBootServletInitializer {

    static String uploadFilePath;
    @Value("${web.upload-path}")
    public void setUploadFilePath(String s){
        uploadFilePath = s;
    }

    public static void main(String[] args) {
        SpringApplication.run(MxBlogBeJavaApplication.class, args);
    }

//    @Override//为了打包springboot项目
//    protected SpringApplicationBuilder configure(
//            SpringApplicationBuilder builder) {
//        return builder.sources(this.getClass());
//    }

}
